package com.mybatisplus.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatisplus.dao.CompetitionMapper;
import com.mybatisplus.pojo.Competition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class CompetitionServiceImpl extends ServiceImpl<CompetitionMapper, Competition> implements CompetitionService {
    @Autowired
    private CompetitionMapper competitionMapper;

    @Override
    public List<Competition> getCompetitionList(Competition competition) {
        return competitionMapper.getCompetitionList(competition);
    }

    @Override
    public void addCompetition(Competition competition) {
        competitionMapper.addCompetition(competition);
    }

    @Override
    public void updateCompetition(Competition competition) {
        competitionMapper.updateCompetition(competition);
    }

    @Override
    public void deleteCompetition(Integer id) {
        competitionMapper.deleteCompetition(id);
    }

}
